import request from '../utils/request'

const requestUrl = "/userInfo"

export function fecthList(params){
   return request({
        url: requestUrl+'/getUserInfoList',
        method: 'get',
        params: params
})
}
export function queryAuthorityWithList(){
     return request({
          url: '/sysAuthority/queryAuthorityWithList',
          method: 'post'
     })
}
export function getById(id){
    return request({
         url: requestUrl+'/getUserInfoById',
         method: 'get',
         params: { id }
    })
 }
export function add(data){
    return request({
         url: requestUrl+'/addUserInfo',
         method: 'post',
         data
    })
 }
 export function update(data){
    return request({
         url: requestUrl+'/updateUserInfo',
         method: 'post',
         data
    })
 }
 export function deleteOne(data){
    return request({
         url: requestUrl+'/deleteUserInfo',
         method: 'post',
         data:[data]
    })
 }
 export function deleteByIds(data){
    return request({
         url: requestUrl+'/deleteUserInfo',
         method: 'post',
         data
    })
 }
